package com.kangfawei.shiro.service;

import com.kangfawei.shiro.pojo.User;
import org.apache.shiro.authc.AuthenticationException;

public interface UserService {


    /**
     * 根据用户名查找用户
     * @param username
     * @return
     */
    public User getUser(String username);

    /**
     * 用户登陆
     * @param username
     * @param password
     * @return
     */
    public Integer login(String username,String password) throws AuthenticationException;
}
